package com.wiscamp.ninechapters.problems.application.dto.vo.sheets;

import com.wiscamp.ninechapters.ddd.ViewObject;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collection;

/**
 * 答题卡明细
 */
@Data
public class SheetDetailVO implements ViewObject {
    /**
     * 明细编号
     */
    private long detailId = 0;

    /**
     * 答题卡编号
     */
    private long sheetId;

    /**
     * 题编号
     */
    private long problemId = 0;

    /**
     * 问题编号
     */
    private long questionId = 0;

    /**
     * 答案类型编号
     */
    private int answerTypeId = 0;

    /**
     * 正确答案编号, 仅仅记录单答案结果
     */
    private long answerId = 0;

    /**
     * 用户答案超文本内容
     */
    private String contentHypertext = "";

    /**
     * 解题方法步骤图片地址
     */
    private String solutionUrl = "";

    /**
     * 是否忽略答题
     */
    private boolean skipped = false;

    /**
     * 问题获得分数
     */
    private double gainScore = 0;

    /**
     * 是否评分
     */
    private boolean scored = false;

    /**
     * 是否批改
     */
    private boolean reviewed = false;

    /**
     * 批改次数
     */
    private int reviewCount = 0;

    /**
     * 是否正确
     */
    private boolean correct = false;

    /**
     * 做题开始时间
     */
    private LocalDateTime problemBeginTime;

    /**
     * 做题结束时间
     */
    private LocalDateTime problemEndTime;

    /**
     * 答题秒数
     */
    private int answeringSeconds = 0;


    private int correctStatus = 0;

    private Collection<SheetAnswerVO> sheetAnswers = new ArrayList<>();
}
